<div class="title"><a title="View All Friend" href="<?php echo SITE_NAME_URL ?>user/friend?id=<?php echo $userId ?>">Friends (<?php echo count(Friend::getIdsFriend($userId)) ?>)</a></div>
<div class="wrap-all-img-friend">
    <?php
    foreach ($modelFriend as $friend) {
	?>
        <a href="<?php echo SITE_NAME_URL ?>user/<?php echo $friend->friend_user_id ?>"><img src="<?php echo $friend->user->getAvatarUrl('thumb'); ?>" title="<?php echo $friend->user->display_name; ?>"/>
	    <?php echo h($friend->user->username, 9); ?>
        </a>        

	<?php
    }
    ?>
</div>
